import 'package:base_lib/index.dart';
import 'package:doctor_login_lib/component.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';

class AuditingPage extends BaseThemeWidget {
  @override
  Widget buildChild(BuildContext context, MTheme theme) {
    return Scaffold(
      appBar: AppBar(
        leading: BackButton(
          onPressed: () {
            Routers.navigateTo(context, DoctorLoginComponent.loginPage,
                clearStack: true);
          },
        ),
        centerTitle: true,
        title: Text("审核中"),
      ),
      body: Container(
        alignment: Alignment.center,
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            Spacer(),
            Image.asset(
              "images/auditing.png",
              height: ScreenAdapter.screenHeightDp / 3,
              package: DoctorLoginComponent.AssetsPackageName,
            ),
            SizedBox.fromSize(
              size: Size(0, 20),
            ),
            Text(
              "实名认证审核中",
              style: TextStyle(fontSize: theme.themeFontSize.fontSizeNormal),
            ),
            Text(
              "请耐心等待",
              style: TextStyle(fontSize: theme.themeFontSize.fontSizeNormal),
            ),
            Spacer(),
          ],
        ),
      ),
    );
  }
}
